<template>
  <el-menu :default-active="model.getData().ticket" @select="model.selectTicket">
    <el-menu-item index="">{{ plugin.lang('order.ticket_all') }}</el-menu-item>
    <el-menu-item v-for="(item, key) in plugin.langTm('order.ticket_text')" :key="key" :index="key.toString()">
      {{ item }}
    </el-menu-item>
  </el-menu>
</template>

<script>
import app from '@/app'
import model from '../model'

export default {
  setup() {
    return {
      plugin: app.plugin.index,
      model
    }
  }
}
</script>